(() => { AOS.init({ duration: 650, once: true, offset: 80 }); document.querySelectorAll(".counter").forEach((counter) => { const raw = counter.textContent || ""; const target = Number.parseInt(raw.replace(/\D/g, ""), 10); if (!target) return; let current = 0; const suffix = raw.replace(/[0-9]/g, ""); const step = Math.max(1, Math.ceil(target / 40)); const timer = window.setInterval(() => { current += step; if (current >= target) { current = target; window.clearInterval(timer); } counter.textContent = `${current}${suffix}`; }, 24); }); })();